#ifndef __USART_H__
#define __USART_H__

#include "gd32f30x_usart.h"

#define USART_RX_SIZE 1024
typedef struct USART
{
    uint8_t receive_flag;
    uint32_t receive_len;
    uint8_t receive_buf[USART_RX_SIZE];
}usart;

extern usart usart0;
void Usart0Init(uint32_t baudrate);



#endif
